/**
 * Created by vincent on 2017/9/27.
 */
moduleResource.factory('GaugeResource', function (CambioResource, $$CambioConfig) {
    return CambioResource($$CambioConfig.RESOURCE_URL + '/gaugeTemplate', {}, {
        queryList: {
            url: $$CambioConfig.RESOURCE_URL + '/gaugeTemplate/queryGaugeList' + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        findById: {
            url: $$CambioConfig.RESOURCE_URL + '/gaugeTemplate/findById/:gaugeTemplateId',
            method: 'GET'
        },
        findByKey: {
            url: $$CambioConfig.RESOURCE_URL + '/gaugeTemplate/findByKey',
            isArray: true,
            method: 'POST'
        },
        add: {
            url: $$CambioConfig.RESOURCE_URL + '/gaugeTemplate/add',
            method: 'POST'
        },
        update: {
            url: $$CambioConfig.RESOURCE_URL + '/gaugeTemplate/update',
            method: 'PUT'
        }
    });
});